﻿namespace Baustein {
    class CBaustein {
        public bool[] bEingaenge;
        public bool[] BEingaenge {
            get { return bEingaenge; }
            set { bEingaenge = value; }
        }
        protected bool[] bInvert;
        public bool[] BInvert {
            get { return bInvert; }
            set { bInvert = value; }
        }
        protected bool bAusgang = false;
        public bool BAusgang {
            get { return bAusgang; }
            set { bAusgang = value; }
        }
        protected int iAnzEin = 0;
        public int IAnzEin {
            get { return iAnzEin; }
            set { iAnzEin = value; }
        }
        protected string strName = "";
        public string StrName {
            get { return strName; }
            set { strName = value; }
        }
        public CBaustein(int iAnzEin, string strName) {
            this.iAnzEin = iAnzEin;
            this.strName = strName;
            bEingaenge = new bool[iAnzEin];
            bInvert = new bool[iAnzEin];
            for (int i = 0; i < iAnzEin; i++) {
                bEingaenge[i] = false;
                bInvert[i] = false;
            }
        }
        public CBaustein() // Null-Argumente-Konstruktor
        {
        }
        public virtual void calc() { }
    }
}